import React from 'react'
import "./Cate.less"
import {Link} from "react-router-dom"
 function Cate(props) {
     let {cateList} =props
     console.log(props);
    return (
        <div className="catt">
            {
               // 遍历 
               cateList.map(item=>(
                // 跳转页面，使用search传参
                // <Link key={item.id} to={"/list?id="+item.id+"&type=1"}>{item.catename}</Link>
                <div>{item.catename}</div>
            ))
            }
        </div>
    )
}
export default React.memo(Cate)